<template>
  <view class="button-group">
    <view class="button-group-button">
      <button class="btn-cancel" @click="$emit('cancel')">取消</button>
      <button class="btn-submit" @click="$emit('submit')">提交申请</button>
    </view>
    <view class="app-bottom-paddig"></view>
  </view>
</template>

<script>
export default {
  name: 'ApplyButtonGroup',
  emits: ['cancel', 'submit']
}
</script>

<style lang="scss" scoped>
.button-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40rpx 30rpx 0 30rpx;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  &-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}
.btn-cancel {
  flex: 1;
  margin-right: 24rpx;
  height: 96rpx;
  background: #fff;
  color: #2E88FF;
  border: 2rpx solid #2E88FF;
  border-radius: 20rpx;
  font-size: 36rpx;
}
.btn-submit {
  flex: 1;
  height: 96rpx;
  background: #2E88FF;
  color: #fff;
  border: none;
  border-radius: 20rpx;
  font-size: 36rpx;
}
</style> 